import request from '@/utils/request'

// 登录api
export function login(data) {
  return request({
    url: '/token-auth/',
    method: 'post',
    data
  })
}

// 获取jwt认证
export function getInfo(token) {
  return request({
    url: '/Users/',
    method: 'get',
    params: {
      'Authorization': token
    }
  })
}
